//
//  VSScheduleList.swift
//  Schedule
//
//  Created by laomi on 2021/6/13.
//

import Foundation


class VSScheduleList: UIViewController {
    override func viewDidLoad() {
        let bg:UIView = UIView.init(frame: CGRect.init(x: 0, y: 0, width: 400, height: 400));
        bg.backgroundColor = UIColor.gray;
        self.view.addSubview(bg);
        self.view.backgroundColor = UIColor.white;
        
        
        let btn:UIButton = UIButton.init(frame: CGRect.init(x: 20, y: 120, width: 100, height: 100));
        btn.setTitle("点我点我别别别",for: UIControlState.normal);
        btn.addTarget(self, action: #selector(onClick), for: UIControlEvents.touchUpInside)
        bg.addSubview(btn);
        
    }
    @objc func onClick(sender:Any) -> Void {
        
        print("参数\(Target_Schedule.param)")
        (Target_Schedule.param[VSScheduleParamKey.callbackKey.rawValue] as? MyCallback)?(NSStringFromClass(self.classForCoder));
    }
    
    
   @objc public static func test()->UIViewController{
        return self.init();
    }
}

